<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree"  lay-filter="test">
            {if $category_list}
            {loop $category_list $index $item}
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="{php echo $this->createWebUrl('service', array('act' => 'question', 'cat_id' => $item['cat_id']));}">{$item['cat_name']}</a>
                    <dl class="layui-nav-child">
                        {if $item['child_list']}
                        {loop $item['child_list'] $index $v}
                            <dd class="{if $_GPC['cat_id'] == $v['cat_id']}layui-this{/if}"><a href="{php echo $this->createWebUrl('service', array('act' => 'question', 'cat_id' => $v['cat_id']));}">{$v['cat_name']}</a></dd>
                        {/loop}
                        {/if}
                    </dl>
                </li>
            {/loop}
            {/if}
        </ul>
    </div>
</div>